package com.whminwei.edu.api.school.dto.fspn;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author wangy
 * @since 2024/5/6
 */
@Data
public class DormFspn {

    @JsonValue
    private List<DormBo> dorms;

    public DormFspn() {
    }

    @JsonCreator
    public DormFspn(List<DormBo> dorms) {
        this.dorms = dorms;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class DormBo {

        private String dormitoryId;

        /**
         * 宿舍楼id
         */
        private String dormitoryBuildingId;
        /**
         *
         */
        private String dormBuildingName;
        /**
         * 楼层号
         */
        private int floorNo;
        /**
         * 宿舍号
         */
        private int dormitoryNo;
        /**
         * 宿舍名称
         */
        private String dormitoryName;

        /**
         * 教室位置
         */
        private String dormLocation;
        /**
         * 容量
         */
        private int capacity;
        /**
         * 宿舍类别
         * 功能房/学生宿舍
         */
        private String dormitoryAttr;
        /**
         * 男寝或女寝
         */
        private String dormType;

    }

}
